<?php
/**
 * Hiển thị nhóm tin tức
 * 
 * @author luubk
 * @since 09-08-2012 - 23:18:56
 */
?>

<?php
if (have_posts()):
    while (have_posts()):
        the_post();
        ?>
        <div class="category_news_item">
            <div class="cni_thumb">
                <a href="<?php the_permalink(); ?>" 
                   title="<?php printf(esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0')); ?>" 
                   rel="bookmark">                                        
                       <?php
                       if (has_post_thumbnail())
                               echo the_post_thumbnail(array(194, 145));
                       else
                       {
                           ?>
                    <img src="<?php echo bloginfo('template_url'); ?>/img/pro_1.jpg" height="145px"/>
                        <?php
                    }
                    ?>
                </a>
            </div>
            <div class="cni_content">
                <h2>
                    <a href="<?php the_permalink(); ?>" 
                       title="<?php printf(esc_attr__('Permalink to %s', 'twentyten'), the_title_attribute('echo=0')); ?>" 
                       rel="bookmark">
                           <?php the_title(); ?>
                    </a>
                </h2>
                <div><?php the_excerpt(); ?></div>
            </div>
            <div class="clear"></div>
        </div>
        <?php
    endwhile;
endif;
wp_reset_postdata();
?>                  
<?php
/**
 * End of category-news
 */